package com.ftg.learn.chapter01;

/**
 * 数学题
 *
 * @author lenovo
 * @version 1.0
 * @date 2023/5/13 9:22
 */

public class shuxue {
    public static void main(String[] args) {
        int sum=0;
       for(int a=0;a<=20; a++){
           for(int b=0;b<=10;b++){
               for(int c=0;c<=5;c++){
                   if(a+2*b+5*c==20) {
                       sum++;
                   }
               }
       }
    }
       System.out.println(sum);
}
 }